package com.itheima.homework08;

import java.util.ArrayList;


public class Test05 {
    public static void main(String[] args) {

        //创建集合
        ArrayList<Goods> list = new ArrayList<>();
        //创建Goods对象
        Goods goods1 = new Goods("鸭蛋", 10);
        Goods goods2 = new Goods("摇头风扇", 2);
        Goods goods3 = new Goods("瓢虫项链", 5);

        list.add(goods1);
        list.add(goods2);
        list.add(goods3);
        //秒杀活动入口
        Activity activity = new Activity();
        activity.goods(list);
    }
}
